import { TableConfig } from '@/components/data-table/types'

export const tableConfig: TableConfig = {
  showToolbar: true,
  showCheckbox: true,
  showPagination: true,
  tableColumns: [
    {
      label: '姓名',
      prop: 'name',
      width: 130,
      fixed: 'left'
    },
    {
      label: '手机号码',
      prop: 'cellphone',
      width: 100
    },
    {
      label: '性别',
      prop: 'gender',
      width: 56,
      slot: 'gender'
    },
    {
      label: '头像',
      prop: 'avatar',
      width: 53,
      slot: 'avatar',
      align: 'center',
      headerAlign: 'left'
    },
    {
      label: '登陆次数',
      prop: 'login_count',
      width: 70
    },
    {
      label: '上次登陆IP',
      prop: 'login_ip',
      width: 120,
      slot: 'loginIp'
    },
    {
      label: '上次登陆时间',
      prop: 'login_time',
      width: 140,
      slot: 'loginTime'
    },
    {
      label: '状态',
      prop: 'status',
      width: 80,
      slot: 'status'
    },
    {
      label: '备注',
      prop: 'remarks',
      minWidth: 120
    },
    {
      label: '操作',
      minWidth: 120,
      slot: 'operation',
      fixed: 'right'
    }
  ]
}
